{extend name="public:_base" /}
{block name="js"}
{include file="public/_validform"}

{/block}
{block name="main"}

<div class="page-container">
    <form name="" method="post" action="{:\\think\\Url::build(\'move_user\')}" id="form">
        <div class="cl pd-5 bg-1 bk-gray">
            <span class="dropDown dropDown_hover __web-inspector-hide-shortcut__ btn-default">
                            <button class="btn radius btn-default dropdown-toggle dropDown_A" type="button" name="move"
                                    data-toggle="dropdown" aria-expanded="false">
                            移动群组
                        <span class="caret"></span>
                    </button>
                    <ul class="dropDown-menu menu radius box-shadow">
                        <li class="disabled open"><a href="javascript:;">移动到群组</a></li>
                            <input name="groupsid" id="style" value="" type="hidden"/>
                            {volist name="wgroups" id="vo"}
                        <li><button name="{$vo.id}" class="btn radius "
                                    onclick="test(this)">{$vo.name}</button></li>
                        {/volist}

                    </ul>
                    </span>
            <span class="r">共有数据：<strong>{$num ?? '0'}</strong> 条</span>
        </div>

        <div class="mt-10">
            <table class="layui-table">
                <thead>
                <tr class="text-c">
                    <th width="40"><input name="" type="checkbox" value=""></th>
					<th width="100">头像</th>
                    <th width="40">openid</th>					 
                    <th width="100">用户</th>
                    <th width="100">性别</th>
                    <th width="100">城市</th>
                    <th width="100">关注时间</th>
                    <th width="100">操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo" empty="$_html_empty"}
                <tr class="text-c va-m">
                    <td><input name="openid[]" type="checkbox" value="{$vo.openid}"></td>
					<td>
						<img src="{$vo.headimgurl}" alt="{$vo.nickname}" width="80px" height="80px" />
                    </td>
                    <td>{$vo.openid}</td>
                    
					<td class="text-l">
                        {$vo.nickname}
                    </td>
                    <td>
                        {$vo.sex ?'男' : '女'}
                    </td>

                    <td>
						{$vo.country}
                        {$vo.province}
                        {$vo.city}
                    </td>
                    <td>
                        {$vo.subscribe_time|date="Y-m-d",###}
                    </td>
                    <td class="td-manage">
                        <a style="text-decoration:none" class="btn radius btn-xs btn-success"
                           onClick="edit('','{:url(\''.\\think\\Request::instance()->controller().'/edit',['openid'=>$vo.openid])}','10001')"
                           href="javascript:;"
                           title="移动">移动</a>
                        <a style="text-decoration:none" class="btn radius btn-xs btn-danger"
                           onClick="del_old(this,'{:url(\''.\\think\\Request::instance()->controller().'/del',['openid'=>$vo.openid])}','10001')"
                           href="javascript:;"
                           title="删除">删除</a>
                        <!--<a style="text-decoration:none" class="btn radius btn-xs btn-danger"-->
                           <!--onClick="del('{:url(\''.\\think\\Request::instance()->controller().'/del')}',{$vo.id})"-->
                           <!--href="javascript:;"-->
                           <!--title="删除">删除</a>-->
                    </td>
                </tr>
                {/volist}
                </tbody>

            </table>
        </div>
    </form>
    {$list->render()}
</div>
{/block}